<%@page import="entity.News"%>
<%@page import="biz.impl.NewsBizImpl"%>
<%@page import="biz.NewsBiz"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
 <%
 	String _id = request.getParameter("id");
 	if(_id==null)
 	{
 		response.sendRedirect("admin.jsp");
 		return;
 	}
 	int id = Integer.parseInt(_id);
 
 	NewsBiz biz = new NewsBizImpl();
 	News news = biz.findById(id);
 	
 
 %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
	<form action="commitEdit.jsp">
		<input name="title" value="<%=news.getTitle() %>">
		<input type="hidden" name="id" value="<%=news.getId() %>">
		<input type="submit" value="提交">
	</form>
</body>
</html>








